package com.dk.service;

import com.dk.pojo.News;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface NewsService {
    PageInfo<News> selectInfo(News news,Integer pageNum,Integer pageSize);

    Integer insertInfo(News news);

    Integer deleteById(Integer newsId);

    News selectById(Integer newsId);

    Integer updateInfo(News news);

    Integer deleteByIds(Integer[] array);

    List<News> getInfoClient(News news);

    PageInfo<News> getInfoServer(News news, Integer pageNumber, Integer pageSize);


    Integer deleteBatchs(Integer[] idarrays);
}
